﻿using System;
using System.Xml.Serialization;

namespace Toybox.NicoSharp.Message
{
	using Utilities;

	[XmlRoot("packet")]
	public partial class Packet : EventArgs
	{

		#region [Static]

		public static Packet Deserialize(string xml)
		{
			return Deserializer.XmlDeserializer<Packet>(xml);
		}

		#endregion [Static]


		#region Public Members

		/// <summary>
		/// スレッド
		/// </summary>
		[XmlElement]
		public Thread[] thread;

		[XmlElement]
		public ViewCounter[] view_counter;

		[XmlElement]
		public Leaf[] leaf;

		/// <summary>
		/// Chatデータ
		/// </summary>
		[XmlElement]
		public Chat[] chat;

		/// <summary>
		/// Chat送信結果
		/// </summary>
		public ChatResult chat_result;

		#endregion Public Members

	}
}